/** 
* All Rights Reserved , Copyright (C) 2023 , 青岛鼎信通讯股份有限公司
* 
* MeetPersonRecordHistoryServiceAuto
* 会议人员记录历史
* 
* 修改纪录
* 2023-03-30 版本：1.0 wangxinhua 创建。
* @version 版本：1.0
* @author 作者：wangxinhua
* 创建日期：2023-03-30
*/

package com.topscomm.meet.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.meet.*;
import com.topscomm.meet.pojo.MeetPersonRecordHistoryEntity;
import com.topscomm.meet.dao.IMeetPersonRecordHistoryDao;


public class MeetPersonRecordHistoryServiceAuto extends MeetService<MeetPersonRecordHistoryEntity,IMeetPersonRecordHistoryDao> {
	
	/**
	 * @author: wangxinhua
	 * @date: 2023-03-30
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("orgcode") != null) {
			temp = mapRow.get("orgcode").toString();
			mapRow.put("disporgcode", datacodeCache.getValueDynamic("CboOrg", temp, "code", "name"));
		}
		if (mapRow.get("deptcode") != null) {
			temp = mapRow.get("deptcode").toString();
			mapRow.put("dispdeptcode", datacodeCache.getValueDynamic("CboDeptFull", temp, "code", "name"));
		}
		if (mapRow.get("submitstate") != null) {
			temp = mapRow.get("submitstate").toString();
			mapRow.put("dispsubmitstate", datacodeCache.getValueDynamic("FIleOperateType", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
	}

	@Override
	@Resource(name = "meetPersonRecordHistoryDao")
	public void setDao(IBasicDao<MeetPersonRecordHistoryEntity> dao) {		
		super.setDao(dao);
	}
}
